Lua/Client/LocalPlayer
From JC2-MP Documentation
Contents
Static functions
 
 
 
 Returns
 
 Prototype
 
 
 object
 
 GetById(number)
 
  object
 
 Match(string)
 
Functions
 
 
 
 Returns
 
 Prototype
 
 
 table
 
 GetAimTarget()
 
 
 number
 
 GetMoney()
 
 
 number
 
 GetOxygen()
 
 
 boolean
 
 IsFriend(Player)
 
 
 boolean
 
 IsFriend(SteamId)
 
 
 boolean
 
 IsTeleporting()
 
 
 
 SetAngle(Angle)
 
 
 
 SetBaseState(AnimationState)
 
 
 
 SetLeftArmState(AnimationState)
 
 
 
 SetLinearVelocity(Vector3)
 
 
 
 SetOxygen(number)
 
 
 
 SetUpperBodyState(AnimationState)
 
Functions inherited from ClientStreamableObject
 
 
 
 Returns
 
 Prototype
 
 
 Angle
 
 GetAngle()
 
 
 ClimateZone
 
 GetClimateZone()
 
  Vector3
 
 GetPosition()
 
Functions inherited from Player
 
 
 
 Returns
 
 Prototype
 
 
 Image
 
 GetAvatar(AvatarSize)
 
 
 Image
 
 GetAvatar()
 
 
 Color
 
 GetColor()
 
 
 number
 
 GetEquippedSlot()
 
 
 Weapon
 
 GetEquippedWeapon()
 
 
 number
 
 GetHealth()
 
 
 number
 
 GetId()
 
 
 table
 
 GetInventory()
 
 
 Vector3
 
 GetLinearVelocity()
 
 
 string
 
 GetName()
 
 
 PlayerState
 
 GetState()
 
 
 SteamId
 
 GetSteamId()
 
 
 object
 
 GetValue(string)
 
 
 World
 
 GetWorld()
 
 
 boolean
 
 InVehicle()
 
 
 boolean
 
 IsValid()
 
 
 
 SetValue(string, object)
 
Functions inherited from Character
 
 
 
 Returns
 
 Prototype
 
 
 AnimationState
 
 GetBaseState()
 
 
 Angle
 
 GetBoneAngle(string)
 
 
 Vector3
 
 GetBonePosition(string)
 
 
 table
 
 GetBones(boolean)
 
 
 table
 
 GetBones()
 
 
 AnimationState
 
 GetLeftArmState()
 
 
 number
 
 GetModelId()
 
 
 VehicleSeat
 
 GetSeat()
 
 
 AnimationState
 
 GetUpperBodyState()
 
  Vehicle
 
 GetVehicle()
 
Operators
 
 
 
 
 
 Returns
 
 Prototype
 
 
 boolean
 
 LocalPlayer == Player
 
  string
 
 tostring(LocalPlayer)
 

